TEMPLATE = lib
TARGET = Models
CONFIG += create_prl \
    qt \
    warn_on

# VERSION = 1.0.0
# Input
HEADERS += DataListModel.h \
    TitledDataModel.h \
    TraitListModel.h \
    XmlDirModel.h \
    RaceModel.h \
    DndDataTreeModel.h
SOURCES += DataListModel.cpp \
    TitledDataModel.cpp \
    TraitListModel.cpp \
    XmlDirModel.cpp \
    RaceModel.cpp \
    DndDataTreeModel.cpp
INCLUDEPATH += ../.
DEPENDPATH += ../.
macx { 
    DESTDIR = ../../DndTool.app/Contents/Frameworks
    CONFIG += lib_bundle
    
    # QMAKE_FRAMEWORK_BUNDLE_NAME = $$qtLibraryTarget($$TARGET)
    QMAKE_LFLAGS += -F$$DESTDIR
    QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/
    LIBS += -framework \
        DndData \
        -framework \
        Xml
}

# TARGET = $$join(TARGET,,lib,.dylib.$$VERSION)
else { 
    DESTDIR = ../../lib
    LIBS += -lDndData \
        -lXml
    QMAKE_LFLAGS += -L../../lib
}
RESOURCES = ../../resources.qrc
